package kr.hkit.powerjava.chther14.windowbulider;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;

import java.awt.FlowLayout;

public class CalPanel extends JPanel {
	private JLabel lblNewLabel;
	private JTextField textField;
	private JTextField textField_1;
	private JLabel lblNewLabel_1;
	private JTextField textField_2;

	/**
	 * Create the panel.
	 */
	public CalPanel() {

		initialize();
	}
	private void initialize() {
		setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		textField = new JTextField();
		add(textField);
		textField.setColumns(10);
		
		lblNewLabel = new JLabel("+");
		add(lblNewLabel);
		
		textField_1 = new JTextField();
		add(textField_1);
		textField_1.setColumns(10);
		
		lblNewLabel_1 = new JLabel("=");
		add(lblNewLabel_1);
		
		textField_2 = new JTextField();
		add(textField_2);
		textField_2.setColumns(5);
	}
	public String getTextField() {
		return textField.getText();
	}
	public void setTextField(String text) {
		textField.setText(text);
	}
	public String getTextField_1() {
		return textField_1.getText();
	}
	public void setTextField_1(String text) {
		textField_1.setText(text);
	}
	public String getTextField_2() {
		return textField_2.getText();
	}
	public void setTextField_2(String text) {
		textField_2.setText(text);
	}

}
